home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 February / PCWorld_2007-02_cd.bin / v cisle / mcvirtual / Virtual PC 2004 SP1.exe / Virtual PC 2004 SP1 / Microsoft Virtual PC 2004 MSDN.msi / DOSAdditions / DosAdd.bat
DOS Batch File  |  2004-03-26  |  3KB  |  96 lines

  1. @echo off
  2. cls
  3. if "%DOSVMADD13%" == "INSTALLED" goto additionsAlreadyInstalled
  4. echo.
  5. echo ***************************************************************************
  6. echo ****           DOS Virtual Machine Additions Installer                 ****
  7. echo ***************************************************************************
  8. echo.
  9. echo DOS Virtual Machine Additions is about to be installed to C:\VMADD
  10. echo.
  11. echo.
  12. choice Do you want to install DOS Virtual Machine Additions? /c:yn
  13.  
  14. if errorlevel 2 goto abort
  15.  
  16. cls
  17. md c:\vmadd > nul
  18. cls
  19.  
  20. copy C:\autoexec.bat+A:\srcfiles\auto.1+A:\srcfiles\auto.2 c:\autoexec.new /y > nul
  21. copy c:\autoexec.new c:\autoexec.bat /y > nul
  22.  
  23. if exist C:\VMADD\VMADD386.SYS goto next
  24. copy a:\srcfiles\config.1+c:\config.sys c:\config.new /y > nul
  25. copy c:\config.new c:\config.sys /y > nul
  26. :next
  27. copy A:\srcfiles\vmadd386.sys C:\VMADD\vmadd386.sys /y > nul
  28.  
  29. if exist C:\VMADD\CDROM.SYS goto next1
  30. copy c:\config.sys+a:\srcfiles\config.2+a:\srcfiles\config.3 c:\config.new /y > nul
  31. copy c:\config.new c:\config.sys /y > nul
  32. :next1
  33. copy a:\srcfiles\cdrom.sys c:\vmadd\cdrom.sys /y > nul
  34.  
  35. if exist C:\VMADD\FSHARE.EXE goto next2
  36. copy c:\config.sys+a:\srcfiles\config.4 c:\config.new /y > nul
  37. copy c:\config.new c:\config.sys /y > nul
  38. copy c:\autoexec.bat+a:\srcfiles\auto.3 c:\autoexec.new /y > nul
  39. copy c:\autoexec.new C:\autoexec.bat /y > nul
  40. :next2
  41. copy a:\srcfiles\fshare.exe c:\vmadd /y > nul
  42.  
  43. if not exist C:\DOS\MSCDEX.EXE goto next3
  44. copy c:\autoexec.bat+a:\srcfiles\auto.6 c:\autoexec.new /y > nul
  45. copy c:\autoexec.new c:\autoexec.bat /y > nul
  46. :next3
  47.  
  48. if exist C:\VMADD\IDLE.COM goto next4
  49. copy c:\autoexec.bat+a:\srcfiles\auto.4 c:\autoexec.new /y > nul
  50. copy c:\autoexec.new c:\autoexec.bat /y > nul
  51. :next4
  52. copy a:\srcfiles\idle.com c:\vmadd /y > nul
  53.  
  54. if exist C:\VMADD\mouse.com goto next5
  55. copy c:\autoexec.bat+a:\srcfiles\auto.5 c:\autoexec.new /y > nul
  56. copy c:\autoexec.new c:\autoexec.bat /y > nul
  57. :next5
  58. copy a:\srcfiles\mouse.com c:\vmadd /y > nul
  59.  
  60. del c:\autoexec.new
  61. del c:\config.new
  62.  
  63. cls
  64. echo.
  65. echo ***************************************************************************
  66. echo ****           DOS Virtual Machine Additions Installer                 ****
  67. echo ***************************************************************************
  68. echo.
  69. echo You have successfully installed DOS Virtual Machine Additions. Please eject the
  70. echo DOS Virtual Machine Additions virtual floppy disk and restart the virtual
  71. echo machine.
  72. echo.
  73. echo.
  74. echo.
  75. goto end
  76.  
  77. :additionsAlreadyInstalled
  78. echo.
  79. echo ***************************************************************************
  80. echo ****           DOS Virtual Machine Additions Installer                 ****
  81. echo ***************************************************************************
  82. echo.
  83. echo DOS Virtual Machine Additions is already installed on this virtual machine.
  84. echo.
  85. echo.
  86. goto end
  87.  
  88. :abort
  89. echo.
  90. echo ...
  91. echo.
  92. echo DOS Virtual Machine Additions has not been installed.
  93.  
  94. :end
  95. echo on
  96.